package com.example.blew.omp.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.blew.omp.system.mapper.TimeLogMapper;
import com.example.blew.omp.system.model.converter.TimeLogConverter;
import com.example.blew.omp.system.model.form.TimeLogForm;
import com.example.blew.omp.system.model.po.TimeLog;
import com.example.blew.omp.system.service.TimeLogService;
import org.springframework.stereotype.Service;

@Service
public class TimeLogServiceImpl extends ServiceImpl<TimeLogMapper, TimeLog> implements TimeLogService {
    @Override
    public Boolean save(TimeLogForm timeLogForm) {
        checkValid(timeLogForm);
        TimeLog timeLog = TimeLogConverter.converterToPoByFrom(timeLogForm);
        boolean save = save(timeLog);
        return save;
    }

    private void checkValid(TimeLogForm timeLogForm) {

    }


}
